<?php
/*
 * @author: Nguyen Anh Duc (anhduc.bkhn@gmail.com) 
 */

?>
<div id="container_demo" >
    <a class="hiddenanchor" id="toregister"></a>
    <a class="hiddenanchor" id="tologin"></a>
    <div id="wrapper">
        <div id="login" class="animate form position">
            <?php
            $form = $this->beginWidget('CActiveForm', array(
                'id' => 'form-login',
                'focus' => array($model, 'username'),
                'enableAjaxValidation' => true,
                'enableClientValidation' => true,
                'htmlOptions' => array(
                    'class' => 'form-login',
                ),
                ))
            ?>

            <!--<form action="dashboard.html" class="form-login">--> 
            <div class="content-login">
                <a href="#" class="logo"></a>

                <div class="inputs">
                    <i class="icon-user first-icon"></i>
                    <?php
                    echo $form->textField($model, 'username', array(
                        'class' => 'first-input',
                        'placeholder' => 'username',
                        'tabindex' => 1
                    ));
                    ?>
                    <div class="clear"></div>
                    <i class="icon-key"></i>
                    <?php
                    echo $form->passwordField($model, 'password', array(
                        'class' => 'last-input',
                        'placeholder' => 'password',
                        'tabindex' => 2
                    ));
                    ?>
                    <div class="clear"> </div>
                </div>

                <div class="remember">
                    <?php
                    echo $form->checkBox($model, 'rememberme', array(''));
                    ?>
                    <input type="checkbox" id="c2" name="cc" checked="checked" />
                    <label for="c2"><span></span> 
                        Lưu đăng nhập
                    </label>
                </div>
                <div class="link"><a href="#">Quên mật khẩu?</a></div>
                <div class="clear"></div>
                <div class="button-login">
                    <!--<input type="submit" class="btn btn-large" value="Sign In">-->
                    <?php echo CHtml::submitButton('Đăng nhập', array('class' => 'btn btn-large')) ?>
                </div>
            </div>

            <?php
            $this->endWidget();
            ?>
            <!--</form>-->
        </div>
    </div>
</div>